OTP\Handler\Forms\WooCommerceCheckOutForm B

Total Complexity 93
Dependencies 10
Dependents 0
Total lines 752
Lines of code 426
Logical lines of code 181
Comment lines 255
Methods 35
Properties 6

Methods 35

Method Rating Maintainability Complexity Lines of code
handle_form_options()
A
45 9 40
add_custom_button()
S
44 3 82
my_custom_checkout_field_process()
S
58 7 18
handle_form()
S
49 6 30
mo_showButtonOnPage()
S
59 4 14
my_custom_checkout_field()
S
52 3 28
checkIfVerificationCodeNotEntered()
S
61 4 11
__construct()
S
57 3 16
enqueue_script_on_page()
S
57 3 16
checkPhoneValidity()
S
63 3 11
handle_woocommerce_checkout_form()
S
55 2 21
showTextLinkOnPage()
S
57 2 18
get_phone_number_selector()
S
70 3 6
process_phone_number()
S
64 3 8
add_custom_popup()
S
65 3 10
show_validation_button_or_text()
S
69 3 8
processEmail()
S
65 3 8
routeData()
S
66 3 8
disable_auto_login_after_checkout()
S
66 3 8
handle_otp_token_submitted()
S
64 3 10
isPaymentVerificationNeeded()
S
73 3 4
place_after_validating_field()
S
68 2 7
checkIfVerificationNotStarted()
S
68 2 7
isPhoneNumberAlreadyInUse()
S
65 2 8
common_button_or_link_enable_disable_script()
S
78 1 4
handle_failed_verification()
S
80 1 3
handle_post_verification()
S
82 1 3
unset_otp_session_variables()
S
80 1 3
billing_phone_process()
S
76 1 4
isGuestCheckoutOnlyEnabled()
S
86 1 2
showButtonInstead()
S
86 1 2
isPopUpEnabled()
S
86 1 2
getPaymentMethods()
S
86 1 2
isSelectivePaymentEnabled()
S
86 1 2
isAutoLoginDisabled()
S
86 1 2